// import axios from "axios";
// axios.defaults.baseURL=process.env.VUE_APP_URL
import request from '@/utils/request.js'
import {getItem} from '@/utils/auth.js'
// 登陆接口
export function authorizationsPost(data){
    return request({
        url:'/v1_0/authorizations',
        method: 'post',
        data:data
    })

}
// 获取个人用户信息
export function userProfile(){
    return request({
        url:'/v1_0/user/profile',
        headers:{
            Authorization:`Bearer ${getItem()}`
        }
    })
}